package com.GB26875_3_2011.common;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 蒋仕国
 * @projectName GB26875_3_211
 * @ClassName GB26875SystemType
 * @date 2025-01-13 15:12
 * @Description: TODO [系统类型]
 */
@AllArgsConstructor
@Getter
public enum GB26875SystemType {
    TYPE_00("通用", 0),
    TYPE_01("火灾报警系统", 1),
    TYPE_02("预留【2-9】", 2),
    TYPE_10("消防联动控制器", 10),
    TYPE_11("消防栓系统", 11),
    TYPE_12("自动喷水灭火系统", 12),
    TYPE_13("气体灭火系统", 13),
    TYPE_14("水喷雾灭火系统（泵启动方式）", 14),
    TYPE_15("水喷雾灭火系统（压力容器启动方式）", 15),
    TYPE_16("泡沫灭火系统", 16),
    TYPE_17("干粉灭火系统", 17),
    TYPE_18("防烟排烟系统", 18),
    TYPE_19("防火门及卷帘系统", 19),
    TYPE_20("消防电梯", 20),
    TYPE_21("消防应急广播", 21),
    TYPE_22("消防应急照明和疏散指示系统", 22),
    TYPE_23("消防电源", 23),
    TYPE_24("消防电话", 24),
    TYPE_25("预留【25 - 127】", 25),
    TYPE_128("预留【128 - 255（用户预留）】", 128),
    ;

    private final String systemName;

    private final int systemCode;


    public static GB26875SystemType getSystemName(int systemCode) {
        for (GB26875SystemType systemType : GB26875SystemType.values()) {
            if (systemType.getSystemCode() == systemCode) {
                return systemType;
            }
        }
        return GB26875SystemType.TYPE_00;
    }
}
